package com.zzxy.springmvc12.controller;

import com.zzxy.springmvc12.po.Student;
import com.zzxy.springmvc12.po.StudentExt;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/stu")
public class StudentController {


    public String register(){return"/user/register";}
    public String addStu(String username,String password){
        System.out.println(username);
        System.out.println(password);
        return"/user/userList";
    }

        @RequestMapping("/addStu2")
        public String addStu(StudentExt,ext) {
            boolean ext = false;
            System.out.println(ext);
            return "/user/userList";
        }
}
